package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-11-16
 * Time: 20:22
 */
class Student{
    private String name;
    private int age;

    public Student(String name, int age){
        this.name = name;
        this.age = age;
        System.out.println(this.name+"的年龄为："+this.age);
    }
}
public class Test1 {
    public static void main(String[] args) {
        Student student = new Student("xiaoming",18);

    }
}
